package com.demo.service.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.demo.mapper.system.UserMapper;
import com.demo.pojo.DTO.DTORoleMenu;
import com.demo.pojo.PO.User;
import com.demo.service.system.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<DTORoleMenu> getRAndMById(Integer userId) {
        List<DTORoleMenu> RAndM = userMapper.getRAndMById(userId);
        return RAndM;
    }
}
